<html><head><title>References to Other Sheets and Referencing URLs</title><meta name="filename" content="text/scalc/guide/cellreferences_url"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
p.P1{
}
p.P2{
}
p.P3{
}
p.P4{
}
span.T1{
font-weight:bold;}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="sheet references; to other sheets" tag="kw68074_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="HTML; in sheet cells" tag="kw68074_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="references; URL in cells" tag="kw68074_4" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="cells; Internet references" tag="kw68074_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="URL; in Calc" tag="kw68074_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="cellreferences_url" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68074">References to Other Sheets and Referencing URLs</help:link></help:to-be-embedded></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>In a sheet cell you can show a reference to a cell in another sheet.</p>
<ol class="L1">
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>Open a new, empty spreadsheet.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="32" xmlns:help="http://openoffice.org/2000/help"/>By way of example, enter the following formula in cell A1 of Sheet1:</p>
<p class="P2"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Sheet 2</span> tab at the bottom of the spreadsheet. Set the cursor in cell A1 there and enter text or a number.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>If you switch back to Sheet1, you will see the same content in cell A1 there. If the contents of Sheet2.A1 change, then the contents of Sheet1.A1 also change.</p>
</li>
</ol>
<p class="Paragraph"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>In the same way, a reference can also be made to a cell from another document. Open another spreadsheet in addition to the current spreadsheet. The current spreadsheet must have already been saved as a file.</p>
<ol class="L2">
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>If you have installed the samples you can, for example, by choosing <span class="T1">File - Open</span>, open the Movie1 document from the spreadsheet samples.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>Change back to the original spreadsheet. Set the cursor in a free cell and enter an equals sign to indicate that you want to begin a formula.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>Now switch to the document you have just loaded, Movie1. Click cell C3.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/>Switch back to the original spreadsheet. In the calculation row you will now see how <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc has added the reference to the formula for you. If you have used the previous example, the following will now be located there:</p>
<p class="P3"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/>Confirm the formula by clicking the green check mark.</p>
<p class="P3"><help:paragraphinfo state="U" number="37" xmlns:help="http://openoffice.org/2000/help"/>The reference to a cell of another document contains the name of the other document in single inverted commas, then a hash #, then the name of the sheet of the other document, followed by a point and the name of the cell. The name of the sheet automatically receives a leading dollar sign, since the sheet has absolute addressing.</p>
</li>
</ol>
<p class="Paragraph"><help:paragraphinfo state="U" number="23" xmlns:help="http://openoffice.org/2000/help"/>If you examine the name of the other document in this formula, you will notice that it is written as a <help:popup Id="65629" Eid="url" xmlns:help="http://openoffice.org/2000/help">URL</help:popup>. This means that you can also enter a URL from the Internet. For example, if you found an Internet page containing current stock exchange information in spreadsheet cells, you can load this page in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc by using the following procedure:</p>
<ol class="L3">
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="39" xmlns:help="http://openoffice.org/2000/help"/>In a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc document, position the cursor in the cell into which you want to insert the external data.</p>
<p class="P4"><help:paragraphinfo state="U" number="41" xmlns:help="http://openoffice.org/2000/help"/>Enter the URL of the document or Web page in the dialog. The URL must be in the format: http://www.my-bank.com/table.html. The URL for local or local area network files is the path seen in the <span class="T1">File - Open</span> dialog.</p>
<p class="P4"><help:paragraphinfo state="U" number="42" xmlns:help="http://openoffice.org/2000/help"/><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> loads the Web page or file in the "background", that is, without displaying it. In the large list box of the <span class="T1">External Data</span> dialog, you can see the name of all the sheets or named ranges you can choose from.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="43" xmlns:help="http://openoffice.org/2000/help"/>Select one or more sheets or named ranges. You can also activate the automatic update function every "n" minutes and click OK.</p>
<p class="P4"><help:paragraphinfo state="U" number="44" xmlns:help="http://openoffice.org/2000/help"/>The contents will be inserted as a link in the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc document.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>Save your spreadsheet. When you open it again later, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc will update the linked cells following an inquiry.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="38" xmlns:help="http://openoffice.org/2000/help"/>Under <help:link Id="66279" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Tools - Options - Spreadsheet - General</span></help:link> you can choose to have the update, when opened, automatically carried out either always, upon request or never. The update can be started manually in the dialog under <span class="T1">Edit - Links</span>.</p>